﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpUiViewInterface.h"
#include "ElementId.h"
#include "GcmpApiDeclaration.h"

namespace gcmp
{
    class IUiView;
    class IGraphicsElementShape;
    class RenderContext;

    class GCMP_UI_VIEW_INTERFACE_EXPORT UIRenderUtils
    {
    public:
        static RenderContext GetRenderContext(IUiView* pUIView);

        // 临时对象
        static ElementId RequestTempElement(IUiView* pUIView);
        static void CleanupTempGRep(IUiView* pUIView, ElementId tempId);
        static void DrawTempGrep(IUiView* pUIView, ElementId tempId, OwnerPtr<IGraphicsElementShape> oElementShape);
    };

}


